package com.yan.gump


import groovy.text.SimpleTemplateEngine

class YanUtil {
	
	def static templateToFile(templateFile, toFile, bindingMap) {
		def template = new File(templateFile)
		def writeable = new SimpleTemplateEngine()
							.createTemplate (template)
							.make(bindingMap)
		writeable.writeTo (new FileWriter (toFile))
	}
	
}
